﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SubForum.ObjectModel.Posts;
using SubForum.ObjectModel.Categories;
using System.Security.Principal;

namespace SubForum.Web.Services.Interfaces
{
    public interface ISubForumService
    {
        void CreateDiscussionPost(DiscussionPost discussionPostToCreate);

        void DeleteDiscussionPost(DiscussionPost discussionPostToDelete);

        void UpdateDiscussionPost(DiscussionPost oldDiscussionPost, DiscussionPost newDiscussionPost);

        PostList<DiscussionPost> GetAllDiscussionPosts();

        PostList<DiscussionPost> GetAllDiscussionPostsForCategory(Category categorytoFind);

        PostList<DiscussionPost> GetAllDiscussionPostsForUser(IIdentity user);

    }
}
